CC=gcc

#header files location
IDIR =../include
#link files location
LDIR =../lib

CFLAGS=-I$(IDIR)

#linking lib stuff
LIBS = `pkg-config --cflags glib-2.0` `pkg-config --libs glib-2.0` -lm -lgslcblas -I ../include/CSparse/Include ../include/CSparse/Lib/libcsparse.a

#source files
SRC = transient.c direct.c indirect.c mna.c parser.c cajun.c

cajun: $(SRC)
	gcc -o $@ $^ $(CFLAGS) $(LIBS)

.PHONY: clean

clean:
	rm -f cajun

